/*
Copyright(c) 2008 Jari Kemppinen <jari@viddem.com>

This example was built upon the PureMVC Framework by Cliff Hall.
http://www.puremvc.org
This example uses the Java PureMVC Framework Version 0.2

Please contribute to the PureMVC community.

License
-------
Your reuse is governed by the Creative Commons Attribution 3.0 license.
 */

package org.lbroussal.client.model;


import java.util.HashMap;
import java.util.Map;

import org.lbroussal.client.model.vo.ItemDataVO;
import org.puremvc4gwt.client.patterns.proxy.Proxy;

public class ItemDataProxy extends Proxy<Map<String, ItemDataVO>> {

    public static final String NAME = "ItemDataProxy";

    public ItemDataProxy() {
        super(NAME, new HashMap<String, ItemDataVO>());
    }

    public void addItem(ItemDataVO item) {
        getData().put(item.toString(), item);
    }
}